﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Odn
{
    /// <summary>
    /// Odn框架最基础的Exception, 系统异常及业务异常建议都从这个类继承
    /// </summary>
    public class OdnException : SystemException
    {
        public string Code { get; set; }

        public OdnException(string code, string message) : base(message)
        {
            this.Code = code;
        }

        public OdnException(string code, string message, Exception exception) : base(message, exception)
        {
            this.Code = code;
        }
    }
}
